#include "cc_main.h"

results& results::operator= (const results& obj)
{
	error_code = obj.error_code;
	blank_lines = obj.blank_lines;
	comment_lines = obj.comment_lines;
	e_comm_lines = obj.e_comm_lines;
	directive_lines[0] = obj.directive_lines[0];
	directive_lines[1] = obj.directive_lines[1];
	data_lines[0] = obj.data_lines[0];
	data_lines[1] = obj.data_lines[1];
	exec_lines[0] = obj.exec_lines[0];
	exec_lines[1] = obj.exec_lines[1];
	SLOC_lines[0] = obj.SLOC_lines[0];
	SLOC_lines[1] = obj.SLOC_lines[1];
	cmplx_math_lines = obj.cmplx_math_lines;  // MMG
	cmplx_trig_lines = obj.cmplx_trig_lines;
	cmplx_logrithm_lines = obj.cmplx_logrithm_lines;
	cmplx_calc_lines = obj.cmplx_calc_lines;
	cmplx_cond_lines = obj.cmplx_cond_lines;
	cmplx_logic_lines = obj.cmplx_logic_lines;
	cmplx_prepoc_lines = obj.cmplx_prepoc_lines;
	cmplx_assign_lines = obj.cmplx_assign_lines;  // End MMG
	cmplx_pointer_lines = obj.cmplx_pointer_lines;  // RST
	trunc_lines = obj.trunc_lines;
	total_lines = obj.total_lines;
	e_flag = obj.e_flag;
	file_name = obj.file_name;
	file_type = obj.file_type;
	class_type = obj.class_type;
	lsloc_truncate = obj.lsloc_truncate;

	return *this;
}

void results::reset()
{
	error_code = "";
	blank_lines = 0;
	comment_lines = 0;
	e_comm_lines = 0;
	directive_lines[0] = 0;
	directive_lines[1] = 0;
	data_lines[0] = 0;
	data_lines[1] = 0;
	exec_lines[0] = 0;
	exec_lines[1] = 0;
	SLOC_lines[0] = 0;
	SLOC_lines[1] = 0;
	cmplx_math_lines = 0;  // MMG
	cmplx_trig_lines = 0;
	cmplx_logrithm_lines = 0;
	cmplx_calc_lines = 0;
	cmplx_cond_lines = 0;
	cmplx_logic_lines = 0;
	cmplx_prepoc_lines = 0;
	cmplx_assign_lines = 0; // End MMG
	cmplx_pointer_lines = 0; // RST
	trunc_lines = 0;
	total_lines = 0;
	e_flag = false;
	file_name = "";
	file_type = 0;
	class_type = DATAFILE;
	lsloc_truncate = 10000;
}
